<h2>Request Processed</h2>

{% if not membersNotAdded and not dualDepartment %}
<h4> Faculty members added successfully. </h4>
{% endif %}

{% if membersNotAdded %}
<h4>Members not added because of one of the following reasons:</h4> 
<ul>
<li>The department listed was misspelled.</li>
<li>There was no department listed.</li>
<li>The department listed does not exist.</li>
</ul>

<table border = "1">
	<tr>
		<th> Banner ID of faculty members not added </th>
	</tr>
		{% for member in membersNotAdded %}
	<tr>
		<td>{{ member }} </td>
	</tr>
		{% endfor %}
{% endif %}

</table>
<br>

{% if dualDepartment %}
<h4>The following faculty members have two departments listed. 
<br>
The primary department is the one that is added to the database.
<br>
The department can be changed from the "admin" page.<p>

<table border = "1">
	<tr>
		<th> Banner ID </th>
		<th> Primary Department </th>
		<th> Secondary Department </th>
	</tr>
		{% for member in dualDepartment %}
	<tr>
		<td> {{ member.0 }} </td>
		<td> {{ member.1 }} </td>
		<td> {{ member.2 }} </td>
	</tr>
</table>
<br>
{% endfor %}
{% endif %}